<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./styles/lib/common.css">
    <link rel="stylesheet" href="./styles/module/index.css">
</head>

<body>
    <div class="top">
        <div class="container clr">
            <div class="fl">
                <a href="javascript:;" class='item'>欢迎来到京东商城！</a>
            </div>
            <div class="fr">
                    <a href="javascript:;" class='item'>登录</a>
                    <a href="javascript:;" class='item'>注册</a>
                    <a href="javascript:;" class='item'>购物车</a>
                    <a href="javascript:;" class='item'>我的订单</a>
            </div>
        </div>
    </div>
    <div class="header">
        <div class="container clr">
            <div class="col-2 logo">
                京东商城
            </div>
            <div class="col-5">1</div>  
            <div class="col-3 search">
                <input type="text">
                <button>搜索</button>
            </div>
        </div>
    </div>
    <div class="carousel-promotion">
        <div class="container clr">
                <div class="col-2">carousel-promotion-2</div>
                <div class="col-8">carousel-promotion-8</div>
        </div>
    </div>
    <div class="ranking-promotion"></div>
    <div class="latest-promotion"></div>
    <div class="popular-promotion"></div>
    <div class="footer"></div>
    <button type="button" id='btn'>Click Me</button>
    <script type="text/javascript" src="../node_modules/jquery/dist/jquery.min.js"></script>
    <script src="./scripts/index.js"></script>
    <script type='text/javascript'>
        var btn = document.getElementById('btn');
        btn.onclick = function () {
            var user = getById(1);
            alert(user.id);
        }
    </script>
</body>

</html>